﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MyWebTest.Controllers
{
    public class BaseJob
    {
        protected virtual void OnStart(string param)
        {
        }
    }

    public class ConsumerJob : BaseJob
    {
        protected override void OnStart(string param)
        {
            try
            {

            }
            catch (Exception e)
            {

            }
        }

        public void OnStart()
        {
            OnStart(null);
        }
    }
}